package com.lerays.spider.sougou.model;

/**
 * Stream source record bean
 * 
 * @author chenxin<chenxin619315@gmail.com>
 */
public class SourceBean 
{
	public static final String TBL_NAME = "leray_source";
	
	private int id = 0;
	private int cate_id = 0;
	//private int type = 0;
	private String biz = null;
	private String name = null;
	private int scores = 0;
	private int is_rec = 0;
	
	private long lastUpdateTime = 0;		//last update timestamp
	private int tryTimes = 0;				//current try times
	
	public static SourceBean create()
	{
		return new SourceBean();
	}
	
	public int getId() 
	{
		return id;
	}
	
	public SourceBean setId(int id) 
	{
		this.id = id;
		return this;
	}

	public int getCateId() 
	{
		return cate_id;
	}

	public SourceBean setCateId(int cate_id) 
	{
		this.cate_id = cate_id;
		return this;
	}
	
	public String getBiz() {
		return biz;
	}
	
	public SourceBean setBiz(String biz) 
	{
		this.biz = biz;
		return this;
	}
	
	public String getName() 
	{
		return name;
	}

	public SourceBean setName(String name) 
	{
		this.name = name;
		return this;
	}
	
	public int getScores() 
	{
		return scores;
	}

	public SourceBean setScores(int scores) 
	{
		this.scores = scores;
		return this;
	}

	public int getIsRec() 
	{
		return is_rec;
	}

	public SourceBean setIsRec(int is_rec) 
	{
		this.is_rec = is_rec;
		return this;
	}

	public long getLastUpdateTime() 
	{
		return lastUpdateTime;
	}

	public SourceBean setLastUpdateTime(long lastUpdateTime) 
	{
		this.lastUpdateTime = lastUpdateTime;
		return this;
	}

	public int getTryTime() 
	{
		return tryTimes;
	}
	
	public void setTryTime( int tryTimes )
	{
		this.tryTimes = tryTimes;
	}

	public SourceBean increaseTryTime() 
	{
		tryTimes++;
		return this;
	}
}
